- method
- A delegate to a method that takes parameters of the same number and type that are contained in the args parameter.
- args
- An array of objects to pass as arguments to the given method. This can be null if no arguments are needed.
Visual Basic (Declaration) | |
---|---|
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)> Overloads Public Function BeginInvoke( _ ByVal method As Delegate, _ ByVal ParamArray args() As Object _ ) As IAsyncResult |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As Medical3DControl Dim method As Delegate Dim args() As Object Dim value As IAsyncResult value = instance.BeginInvoke(method, args) |
C# | |
---|---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public IAsyncResult BeginInvoke( Delegate method, params object[] args ) |
C++/CLI | |
---|---|
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)] public: IAsyncResult^ BeginInvoke( Delegate^ method, ... array<Object^>^ args ) |
Parameters
- method
- A delegate to a method that takes parameters of the same number and type that are contained in the args parameter.
- args
- An array of objects to pass as arguments to the given method. This can be null if no arguments are needed.
Return Value
An System.IAsyncResult that represents the result of the System.Windows.Forms.Control.BeginInvoke(System.Delegate) operation.Exception | Description |
---|---|
System.InvalidOperationException | No appropriate window handle can be found. |
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7